<%@page import="weixinkeji.dev.dc.base.scheme.promotions.cache.PromotionConfigControl"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jspf/must/basePath.jspf" %>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>服务员下单</title>
        <script src="zj/jq/jquery-1.11.3.min.js"></script>
        <%@include file="/WEB-INF/jspf/zj/uikit/uikit.jspf" %>
        <%@include file="/WEB-INF/jspf/zj/uikit/sticky.jspf" %>

        <link href="zj/ligerui/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css">
        <script src="zj/ligerui/ligerUI/js/core/base.js" type="text/javascript"></script>
        <script src="zj/ligerui/ligerUI/js/plugins/ligerTree.js" type="text/javascript"></script>

        <script src="dc_manager/base/food/series/js/Series_treeMenu.js" type="text/javascript"></script>
        <script src="dc_view/buy/js/foodView.js" type="text/javascript"></script>

        <script type = "text/javascript">
            $(function () {
                f_dc_base_food_series_menuTree("DivID_showMenu", f_food_series_choose);
                $.post("view/show/food/viewfood.imy", {}, function (data) {
                    showFoodViewDate(data, "divID_showFood");
                }, "json");

                function f_food_series_choose(d, terget) {
                    $.post("view/show/food/viewfood.imy", {series_id: getMyNodeID("series_id", d.data)}, function (data) {
                        showFoodViewDate(data, "divID_showFood");
                    }, "json");
                }
            });
            function showImg(imgsrc) {
                $("#SHOW_IMG_ID").attr("src", imgsrc);
            }
            function addFood(food_id) {
                $.post("weixinkeji/dev/dc/buy/order/a/add.imy", {
                    sort: 1
                    , id: food_id
                    , number: 1.0
                }, function (d) {//
                    if (d.statusCode == 200) {
                        UIkit.notify(d.message, {timeout: 1200, status: 'success'});
                    } else {
                        UIkit.notify(d.message, {timeout: 2000, status: 'warning'});
                    }
                }, "json");
            }
        </script>

    </head>

    <body onload="detectBrowser()">
        <div class="uk-width-1" style="margin-top: 15px;margin-bottom: 40px;">
            <nav class="uk-navbar" data-uk-sticky>
                <a class="uk-navbar-brand uk-hidden-small" href="http://imyweb.org"
                   title="IMY框架是一款开源免费的高效高速小巧强大的WEB框架!如果您需要为此产品进行二次开发，您将会需要用到这IMY框架！"
                   target="_blank"
                   >IMY框架</a>
                <div class="uk-container uk-container-center">
                    <ul class="uk-navbar-nav">
                        <!--<li><a href="dc_view/buy/fwy/xd_promotionDay.jsp">活动</a></li>-->
                        <%                            if (PromotionConfigControl.checkOK()) {
                                out.print("<li><a href=\"dc_view/buy/fwy/xd_promotionDay.jsp\">活动</a></li>");
                            }
                        %>
                        <li class="uk-active"><a href="dc_view/buy/fwy/xd_food.jsp">菜单</a></li>
                        <li><a href="dc_view/buy/fwy/xd_combo.jsp">套餐</a></li>
                        <li><a class="uk-button-primary" href="#showFWYCar" data-uk-modal onclick="selectKD_NOWSelect()"><div style="float:left">购物车</div></a></li>
                        <li><a href="dc_view/buy/fwy/kd.jsp">开单</a></li>
                    </ul>
                </div>
            </nav>
        </div>
        <div id="DivID_showMenu" style="float:left; margin-left: 15px;font-size:15px;">
        </div>
        <div class="uk-container uk-container-center">
            <div class="uk-margin uk-grid">

                <div class="uk-width-1-1">
                    <!--style="float:left"-->
                    <div>
                        <table class="uk-table uk-table-hover">
                            <thead  style="text-align: center">
                                <tr>
                                    <th width="55px" class="uk-text-center">预览</th>
                                    <th class="uk-text-center">归类</th>
                                    <th class="uk-text-center">菜名(单位)</th>
                                    <th class="uk-text-center">价格(元)</th>
                                    <!--                                    <th class="uk-text-center">现购买(元)</th>-->
                                    <th class="uk-text-center">下单操作</th>
                                </tr>
                            </thead>
                            <tbody id="divID_showFood">
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

        <!-- 模态对话框 -->
        <div id="showMyPromotionDayImg" class="uk-modal">
            <div class="uk-modal-dialog  uk-modal-dialog-lightbox">
                <a href="" class="uk-modal-close uk-close uk-close-alt"></a>
                <div class=" uk-overflow-container"></div> <img id="SHOW_IMG_ID" src="" alt="">
            </div>
        </div>
        <%@include file="/WEB-INF/jspf/dc/fwy/fwyCar.jspf" %>
        <!--         抽屉式边栏 
                <div id="my-id" class="uk-offcanvas">
                    <div class="uk-offcanvas-bar">...</div>
                </div>-->


    </body>
</html>
